/**
 * 支付相关
 * @author [donghui]
 */
const $http = require('../utils/http.js'), api = require('../config/api.js')

/**
 * 快捷支付
 */
var _xcxOffLinePay = function (params) {
  return $http.get(api.OFFLINEPAY, params)
}

/**
 * 余额支付发送验证码
 */
var _sendMyVerifyCode = function (params) {
  return $http.get(api.SEND_MY_VERIFY_CODE, params)
}

/**
 * 查询当前用户账户余额
 */
var _getTotalCash = function (params) {
  return $http.get(api.GET_TOTAL_CASH, params)
}

/**
 * 账户余额充值
 */
var _depositCharge = function (params) {
  return $http.get(api.DEPOSIT_CHARGE, params)
}

/**
 * 账户交易记录
 */
var _listDepositRecorder = function (params) {
  return $http.get(api.LIST_DEPOSIT_RECORDER, params)
}

module.exports = {
  xcxOffLinePay: _xcxOffLinePay,
  sendMyVerifyCode: _sendMyVerifyCode,
  getTotalCash: _getTotalCash,
  depositCharge: _depositCharge,
  listDepositRecorder: _listDepositRecorder
}